package tuplespaces;

import com.gigaspaces.annotation.pojo.SpaceRouting;

/**
 * A simple object used to work with the Space. 
 */
public class Roxel  {
	
	static final Integer length = 50;
	private boolean free;
    private Integer x;
    private Integer y;    
    private Direction dir;
	
    public Roxel(Integer x, Integer y, Direction dir) {
		this.x = x;
		this.y = y;
		this.dir = dir;
		this.free = true;
	}
    
    public Roxel(){  	//Template constuctor
    }


    public boolean isFree() {
    	return free;
    }

	public void setFree(boolean free) {
		this.free = free;
	}




	public Integer getX() {
		return x;
	}



	public void setX(Integer x) {
		this.x = x;
	}



	public Integer getY() {
		return y;
	}



	public void setY(Integer y) {
		this.y = y;
	}



	public Direction getDir() {
		return dir;
	}



	public void setDir(Direction dir) {
		this.dir = dir;
	}

	@Override
	public String toString() {
		return "Roxel [x=" + x + ", y=" + y + "]";
	}


}